package net.yxsoft.enumclass;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/5/26.
 */
public class SexEnumCls extends EnumClsBase<SexEnumCls> {
  public SexEnumCls(String text, String value) {
    super(text, value);
  }

  public static SexEnumCls Choose = new SexEnumCls("请选择", "");

  public static SexEnumCls Unlimited = new SexEnumCls("不限", "");

  public static SexEnumCls Man = new SexEnumCls("男", "1");

  public static SexEnumCls Woman = new SexEnumCls("女", "0");



  public static List<SexEnumCls> COLLECTS_DEFAULTS = new ArrayList<SexEnumCls>() {
    {
      add(Man);
      add(Woman);
    }
  };

  public static List<SexEnumCls> COLLECTS_UNLIMITED = new ArrayList<SexEnumCls>() {
    {
      add(Unlimited);
      add(Man);
      add(Woman);
    }
  };

  public static List<SexEnumCls> COLLECTS_CHOOSE = new ArrayList<SexEnumCls>() {
    {
      add(Choose);
      add(Man);
      add(Woman);
    }
  };

}
